<?php

function verify($id_barang, $jumlah) {
    include 'connect.php';
    $query = mysqli_query($con, 
            "SELECT `id_stok_logk` FROM `STOK_LOG_KURANG`
                WHERE (`id_bhp`='$id_barang' AND `jumlah`=$jumlah)");
    $id_stok_logk = mysqli_fetch_assoc($query)['id_stok_logk'];
    $query2 = mysqli_query($con,"UPDATE `STOK_LOG_KURANG` SET `flag`='1'
        WHERE `id_stok_logk` = '$id_stok_logk'");
        
}

?>